package com.zhentao.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName t_user
 */
@TableName(value ="t_user")
@Data
public class TUser implements Serializable {
    /**
     * 用户编号
     */
    @TableId(value = "user_id", type = IdType.AUTO)
    private Integer userId;

    /**
     * 账号
     */
    @TableField(value = "username")
    private String username;

    /**
     * 密码
     */
    @TableField(value = "password")
    private String password;

    /**
     * 用户名
     */
    @TableField(value = "nickname")
    private String nickname;

    /**
     * 头像
     */
    @TableField(value = "avatar")
    private String avatar;

    /**
     * 班级外键
     */
    @TableField(value = "class_id")
    private Integer classId;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 状态 0:正常 1:禁用
     */
    @TableField(value = "state")
    private Integer state;

    /**
     * 手机号
     */
    @TableField(value = "phone")
    private String phone;

    /**
     * 市场部外键
     */
    @TableField(value = "md_id")
    private Integer mdId;

    /**
     * 0:男 1:女
     */
    @TableField(value = "sex")
    private Integer sex;

    /**
     * 电子邮箱
     */
    @TableField(value = "email")
    private String email;

    /**
     * 学号
     */
    @TableField(value = "student_id")
    private String studentId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}